import paramiko
def ssh():
    key_filename = "C:\\Users\\Administrator\\Documents\\Identity.pub"
    client = paramiko.SSHClient()
    client.set_missing_host_key_policy(paramiko.AutoAddPolicy())

    client.connect('122.226.199.218', port=37371, username='root',password='ljjpwd@123',
        pkey=None, key_filename=None, timeout=None, allow_agent=True,
        look_for_keys=True, compress=False)
    stdin, stdout, stderr = client.exec_command('ls -l')
    print(stdout)


if __name__ == "__main__":
    ssh()
